package day3.p8;

public class UserTrial {
	private int val1, val2;

	public UserTrial() {
	}

	public UserTrial(int val1, int val2) {
		try {
			if (val1 < 0 || val2 < 0)
				throw new MyException("Illegal value exception");
			else {
				this.val1 = val1;
				this.val2 = val2;
			}
		} catch (MyException e) {
			System.out.println(e.toString());
		}
	}

	public boolean show() {
		if (this.val1 > 0 && this.val2 > 0)
			return true;
		else
			return false;
	}
}
